package com.sjy.common.enums;

public enum AppealEnum {
	DSH(1,"待审核"),
	SHTG(2,"审核通过"),
	SHJJ(3,"审核拒绝");
	
	private String name;
	private Integer type;
	
	private AppealEnum(Integer type,String name) {
		this.name = name;
		this.type = type;
	}
	public static String getName(Integer type) {
		for(AppealEnum a :AppealEnum.values() ) {
			if(type == a.getType()) {
				return a.name;
			}
		}
		return null;
	}
	public static Integer getType(String name) {
		for(AppealEnum a :AppealEnum.values() ) {
			if(name.equals(a.getName())) {
				return a.type;
			}
		}
		return null;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Integer getType() {
		return type;
	}
	public void setType(Integer type) {
		this.type = type;
	}
}
